package com.jadefashion.service;

import com.jadefashion.health.entity.QueryPageBean;
import com.jadefashion.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    //分页数据展示
    Map queryPage(QueryPageBean queryPageBean);

    //添加角色信息
    void addRole(Role role, List<Integer> permissionIds, List<Integer> menuIds);

    //更新角色对应权限数据
    void updatePermissionForRoleByDetail(List<Integer> deleteIds, List<Integer> addIds, Integer currentRowId);

    //更新角色对应菜单数据
    void updateMenuForRoleByDetail(List<Integer> deleteIds, List<Integer> addIds, Integer currentRowId);

    //编辑修改role
    void updateRole(Role role);

    //删除role
    void deleteRole(Integer id);

    //查询所有role
    List<Role> queryAllRole();

    //查询user对应role
    List<Role> queryRoleForUser(Integer id);
}
